home *** CD-ROM | disk | FTP | other *** search
- // vcview.cpp : implementation of the CVcView class
- //
-
- #include "stdafx.h"
- #include "vc.h"
-
- #include "vcdoc.h"
- #include "vcview.h"
-
- #ifdef _DEBUG
- #undef THIS_FILE
- static char BASED_CODE THIS_FILE[] = __FILE__;
- #endif
-
- /////////////////////////////////////////////////////////////////////////////
- // CVcView
-
- IMPLEMENT_DYNCREATE(CVcView, CFormView)
-
- BEGIN_MESSAGE_MAP(CVcView, CFormView)
- //{{AFX_MSG_MAP(CVcView)
- ON_VBXEVENT(VBN_CHANGE, IDC_SELECTOR1, OnChangeSelector1)
- //}}AFX_MSG_MAP
- END_MESSAGE_MAP()
-
- /////////////////////////////////////////////////////////////////////////////
- // CVcView construction/destruction
-
- CVcView::CVcView()
- : CFormView(CVcView::IDD)
- {
- //{{AFX_DATA_INIT(CVcView)
- m_select2 = NULL;
- m_select1 = NULL;
- //}}AFX_DATA_INIT
- // TODO: add construction code here
- }
-
- CVcView::~CVcView()
- {
- }
-
- void CVcView::DoDataExchange(CDataExchange* pDX)
- {
- CFormView::DoDataExchange(pDX);
- //{{AFX_DATA_MAP(CVcView)
- DDX_VBControl(pDX, IDC_SELECTOR2, m_select2);
- DDX_VBControl(pDX, IDC_SELECTOR1, m_select1);
- //}}AFX_DATA_MAP
- }
-
- /////////////////////////////////////////////////////////////////////////////
- // CVcView diagnostics
-
- #ifdef _DEBUG
- void CVcView::AssertValid() const
- {
- CFormView::AssertValid();
- }
-
- void CVcView::Dump(CDumpContext& dc) const
- {
- CFormView::Dump(dc);
- }
-
- CVcDoc* CVcView::GetDocument() // non-debug version is inline
- {
- ASSERT(m_pDocument->IsKindOf(RUNTIME_CLASS(CVcDoc)));
- return (CVcDoc*)m_pDocument;
- }
- #endif //_DEBUG
-
- /////////////////////////////////////////////////////////////////////////////
- // CVcView message handlers
-
-
- void CVcView::OnChangeSelector1(UINT, int, CWnd*, LPVOID)
- {
- long value;
-
- value=long(m_select1->GetNumProperty("Value"));
- m_select1->SetNumProperty("SelectionID",value);
-
- value=long(m_select1->GetNumProperty("SelectionFontID"));
- m_select1->SetNumProperty("CaptionFontID",value);
-
- }
-